from gxl_ai_utils.utils import utils_file

def do_handle():
    """"""
    splice_list = ['train', 'dev', 'test']
    for splice in splice_list:
        wav_path = f'data/{splice}/wav.scp'
        text_path = f'data/{splice}/text'
        data_list_path = f'data/{splice}/data.list'
        utils_file.do_convert_wav_text_scp_to_jsonl(wav_path, text_path, data_list_path)

if __name__ == "__main__":
    do_handle()